<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=<?=$this->config->item('charset');?>">
		<title>食材百科_食物分类_食物相克_食物热量表_<?=$this->config->item('site_name');?></title>
    	<meta name="keywords" content="<?=$this->config->item('site_description');?>" />
   		<meta name="description" content="<?=$this->config->item('site_keywords');?>" />
   		<meta name="mobile-agent" content="format=html5;url=http://m.ichufang.cn/shicai">
   		<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
		<link href="<?=base_url('static/css/global.css')?>" rel="stylesheet" type="text/css" media="screen">
		<link href="<?=base_url('static/css/recipe.css')?>" rel="stylesheet" type="text/css" media="screen">
		<script src="<?=path_res('static/js/jquery.js')?>"></script>
		<script src="<?=path_res('static/js/functions.js')?>"></script>
	</head>
	<body>
		<? $this->load->view('header'); ?>
			<div id="main" class="clearfix">
				<div class="bxiaobi">
					<?php foreach ($category as $row) :?>
					<div class="fslei">
						<a href="<?=site_url('shicai/cate/'.$row['cid'])?>" rel="nofollow">
							<img src="<?=base_url('static/img/shicai/'.$row['cid'].'.jpg')?>" alt="<?=$row['cateName']?>" />
						</a>
						<h2>
							<a href="<?=site_url('shicai/cate/'.$row['cid'])?>"><?=$row['cateName']?></a>
						</h2>
						<p>
							<?php foreach ($this->Shicai_mdl->get_shicai_list_by_pid($row['cid'],0,5)->result_array() as $shicai):?>
								<a href="<?=site_url('ingredients/'.$shicai['id'])?>"><?=$shicai['title']?></a>
							<?php endforeach; ?>
						</p>
						<div class="clear">
						</div>
					</div>
					<?php endforeach;?>
				</div>
				<div class="bkright">
					<div class="dpshic">
						<h2>
							时令食材
						</h2>
						<?php $i = 0;?>
						<?php foreach ($this->Shicai_mdl->get_shicai_season(15)->result_array() as $sl):?>
						<?php $i++?>
						<div class="scfo <?php if($i%3!=0){echo 'mrm';}?>">
							<a href="<?=site_url('ingredients/'.$sl['id'])?>" title="<?=$sl['title']?>的做法大全">
								<img src="<?=$sl['pic']?>" alt="<?=$sl['title']?>">
								<?=$sl['title']?>
							</a>
						</div>
						<?php endforeach; ?>
					</div>
				</div>
			</div>
<? $this->load->view('footer'); ?>